<template>
    <div></div>
</template>

<script>
export default {
    name: 'Index',
    mounted() {
        const { state } = this.$store;
        const { user } = state;
        if (user.id) {
            const { permissionList } = state;
            this.$router.push({
                path: permissionList[0].permissionList[0].route,
            });
        } else {
            this.$router.push('/newLogin');
        }
    },
};
</script>

<style scoped>
</style>
